/** *****************  JAVA头文件说明  ****************
 * file name  :  Constant.java
 * owner      :  xu
 * copyright  :  UMPAY
 * description:  
 * modified   :  2016-11-9
 * *************************************************/ 

package com.jflm.domain;

import com.jflm.util.PropertiesUtils;
import com.jflm.util.RedisPool;


/** ******************  类说明  *********************
 * class       :  Constant
 * @author     :  xuhuafeng
 * @version    :  1.0  
 * description :  常量类
 * ************************************************/

public class Constant {
	
	//分页相关常量
	public static final String PAGE_ROWS = "rows";// 每页记录数
	public static final String PAGE_TOTAL = "total";// 总数
	
	/**
	 * 第三方账户来源-中国银行
	 */
	public static final String SOURCE_BOC = "BOC";
	
	/**
	 * mall-gate地址
	 */
	public static final String MALL_GATE_DOMAIN = PropertiesUtils.getProperty("mall.gate.url");
	/**
	 * mall-service地址
	 */
	//public static final String MALL_SERVICE_DOMAIN = PropertiesUtils.getProperty("mall.service.url");
	public static final String MALL_SERVICE_DOMAIN = "mall.service.url";
	
	/**
	 * cashier-service地址
	 */
	public static final String CASHIER_SERVICE_DOMAIN = "cashier.service.url";
	
	/**
	 * utf-8字符集
	 */
	public static final String CHARSET_UTF_8 = "utf-8";
	
	/**
	 * 返回信息-SUCCESS
	 */
	public static final String RETMSG_SUCCESS = "SUCCESS";
	
	/**
	 * 第三方账户积分类型
	 */
	public static final String POINTSTYPE_NORMAL = "1";
	
	/**
	 * 订单类型-兑换
	 */
	public static final String ORDERTYPE_DH = "JFDH";
	/**
	 * 订单类型-撤销
	 */
	public static final String ORDERTYPE_CZ = "JFCZ";
	
	/**
	 * 交易类型-扣减联盟积分
	 */
	public static final String FUNCODE_KJLM = "KJLM";
	/**
	 * 交易类型-增加联盟积分
	 */
	public static final String FUNCODE_ZJLM = "ZJLM";
	/**
	 * 交易类型-扣减三方积分
	 */
	public static final String FUNCODE_KJSF = "KJSF";
	/**
	 * 交易类型-增加三方积分
	 */
	public static final String FUNCODE_ZJSF = "ZJSF";
	
	/**
	 * 订单状态-初始
	 */
	public static final Short ORDERSTATE_INITIAL = 0;
	/**
	 * 订单状态-成功
	 */
	public static final Short ORDERSTATE_SUCCESS = 1;
	/**
	 * 订单状态-失败
	 */
	public static final Short ORDERSTATE_FAIL = 2;
	/**
	 * 订单状态-受理中
	 */
	public static final Short ORDERSTATE_PROCESS = 3;
	
	/**
	 * 积分类型
	 */
	public static final String POINTS_TYPE_PTJF = "PTJF";
	/**
	 * 积分类型-首次积分兑换赠送
	 */
	public static final String POINTS_TYPE_DHZS = "DHZS";
	/**
	 * 功能码撤销
	 */
	public static final String FUNCODE_CANCEL = "CANCEL01";
	/**
	 * 功能码减分
	 */
	public static final String FUNCODE_DEDUCT = "POINT001";
	/**
	 * 功能码累计
	 */
	public static final String FUNCODE_CUMULATIVE = "POINT002";
	/**
	 * 首次兑换积分赠送积分额度(后边加上appid,每个第三方增送的积分不同)
	 */
	public static final String FIRST_EXCHANGE_ = "FIRST_EXCHANGE_";
	
	
	public static final String REDPACKETINFO = "INFO";
	
	
	public static final String REDPACKETRECORD = "RECORD";
	
	public static final String REDPACKET= "REDPACKET_";
	
	public static void main(String[] args) {
		System.out.println(RedisPool.get("REGISTER_VALIDCODE_18210141187"));
	}
}
